package com.example.im.core.vo;

/**
 * 接收消息信息
 *
 */
public class ReceiveMsgInfo {
	/**
	 *消息类型，'text/image/voice/video/file/location/goods'
	 * text：文字（包括表情），image：图片，voice：音频，video：视频，file：文件，location：位置，goods：商品
	 */
	private String msgType;
	/**
	 * 消息id
	 */
    private String msgId;
    /**
     * 消息内容
     */
    private String content;
	
	/**
	 * 发送用户信息
	 */
	private UserInfo from;
	/**
	 * 接收用户信息
	 */
	private UserInfo to;
	
	
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public String getMsgId() {
		return msgId;
	}
	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public UserInfo getFrom() {
		return from;
	}
	public void setFrom(UserInfo from) {
		this.from = from;
	}
	public UserInfo getTo() {
		return to;
	}
	public void setTo(UserInfo to) {
		this.to = to;
	}
	
	
	@Override
	public String toString() {
		return "ReceiveMsgInfo [msgType=" + msgType + ", msgId=" + msgId + ", content=" + content + ", from=" + from
				+ ", to=" + to + "]";
	}
	
}
